﻿using System.Collections.Specialized;

namespace Egora.Pvp
{
  public class PvpValueBase
  {
    private NameValueCollection _values = new NameValueCollection();

    public PvpValueBase()
    {
    }

    public PvpValueBase(NameValueCollection values)
    {
      if (values != null)
        _values = values;
    }

    protected string GetValue(string name)
    {
      return _values[name];
    }

    protected void SetValue(string name, string value)
    {
      _values[name] = value;
    }
  }
}